import { type RouteRecordRaw, createRouter, createWebHashHistory } from 'vue-router'

export const basicRoute: RouteRecordRaw[] = [
    {
        path: '/',
        redirect: '/helloworld',
        children: [
            {
                path: '/helloworld',
                name: 'HelloWorld',
                component: () => import('../components/HelloWorld.vue')
            }
        ]
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes: basicRoute
})

export default router
